package com.mths.client.dto;


public class DocClassDTO extends BasicDTO {

	private static final long serialVersionUID = -8494258187242038532L;

	private String objid;

	private String docClassName;

	public DocClassDTO(String objid, String docTypeName) {
		super();
		this.objid = objid;
		this.docClassName = docTypeName;
	}

	public DocClassDTO() {
		super();
	}

	public String getObjid() {
		return objid;
	}

	public void setObjid(String objid) {
		this.objid = objid;
	}

	public String getDocClassName() {
		return docClassName;
	}

	public void setDocClassName(String docClassName) {
		this.docClassName = docClassName;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((docClassName == null) ? 0 : docClassName.hashCode());
		result = prime * result + ((objid == null) ? 0 : objid.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		DocClassDTO other = (DocClassDTO) obj;
		if (docClassName == null) {
			if (other.docClassName != null)
				return false;
		} else if (!docClassName.equals(other.docClassName))
			return false;
		if (objid == null) {
			if (other.objid != null)
				return false;
		} else if (!objid.equals(other.objid))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "DocTypeDTO [objid=" + objid + ", docTypeName=" + docClassName + "]";
	}

}